#!/bin/bash  
  
while IFS= read -r line; do  
    echo "$line" | ./test >> output.txt  
done < input.txt  